<template>
    <div class="myuser">
      <div class="title">
          账号
        <img src="../img/2.png" alt="">
      </div>
      <div class="info">
        <span class="info-img">
          <img :src=userXqing.avatarUrl  alt="">
        </span>
        <span class="info-id">
          {{userXqing.nickname}}
          <br>
          <span>
          Lv.8
        </span>
        </span>
        <span class="info-qd">
          <span>
              <img src="../img/qiandao.png" alt="">
          签到
          </span>

        </span>
      </div>
      <div class="xiaoxi">
        <ul>
          <li>
            动态
            <br>
            <span>{{userDongtai}}</span>

          </li>
          <li @click="myfloow">
            关注
            <br>
            <span>{{userGzhu}}</span>
          </li>
          <li>
            粉丝
            <br>
            <span>{{userFsi}}</span>
          </li>
          <li class="l4">

            <img src="../img/xie.png" alt="">
            <span class="yuan"></span>
            <br>
            <span>我的资料</span>
          </li>
        </ul>
      </div>
      <div class="myxiaoxi" @click="nextSet">
        <span class="left">
          <span class="leftone"><img src="../img/myxiaoxi.png" alt=""></span>

          <span>我的消息</span>
        </span>
        <span class="right">
          <span class="s1">
<img src="../img/qie.png" alt="" >
          </span>

            <span class="img2">
             <img src="../img/nextsetup.png" alt="" >
          </span>

        </span>
      </div>
      <div class="vipcenter">
        <ul>
          <li @click="nextSet">
            <span class="s1"><img src="../img/vipcenter.png" alt=""></span>
            <span class="nr">
              <span class="mynews">我的消息</span>
              <span class="newp">新客特惠</span>
              <span class="cir">
                <img src="../img/qie.png" alt="">
              </span>
              <span class="yuan"></span>
              <span class="nset">
                <img src="../img/nextsetup.png" alt="">
              </span>
            </span>
          </li>
          <li>
            <span class="s1"><img src="../img/shopcity.png" alt=""></span>
            <span class="nr">
              <span class="mynews">商城</span>
              <span class="newp">运动蓝牙 29</span>
              <span class="cir">
                <img src="../img/qie.png" alt="">
              </span>
              <span class="yuan"></span>
              <span class="nset">
                <img src="../img/nextsetup.png" alt="">
              </span>
            </span>
          </li>
          <li class="li3">
            <span class="s1"><img src="../img/vipcenter.png" alt=""></span>
            <span class="nr">
              <span class="mynews">在线听歌免流量</span>
              <span class="newp"></span>
              <span class="cir">
                <img src="../img/qie.png" alt="">
              </span>
              <span class="yuan"></span>
              <span class="nset">
                <img src="../img/nextsetup.png" alt="">
              </span>
            </span>
          </li>
        </ul>
      </div>
      <div class="shezhi">
        <ul>
          <li>

              <img src="../img/set.png" alt="">

            <span class="s2">
              <span class="set">设置</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/scan.png" alt="">

            <span class="s2">
              <span class="set">扫一扫</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/idt.png" alt="">

            <span class="s2">
              <span class="set">个性换肤</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/night.png" alt="">

            <span class="s2">
              <span class="set">夜间模式</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>
            <img src="../img/timing.png" alt="">
            <span class="s2">
              <span class="set">定时关闭</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/slock.png" alt="">

            <span class="s2">
              <span class="set">音乐闹钟</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/car.png" alt="">

            <span class="s2">
              <span class="set">驾驶模式</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/boy.png" alt="">

            <span class="s2">
              <span class="set">亲子模式</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/icecream.png" alt="">

            <span class="s2">
              <span class="set">小兵电台</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li class="lip">

            <img src="../img/dcoupon.png" alt="">

            <span class="s2">
              <span class="set">优惠券</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
        </ul>
      </div>
      <div class="jion">
        <ul>
          <li>

            <img src="../img/join.png" alt="">

            <span class="s2">
              <span class="set">加入网易云音乐</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li>

            <img src="../img/share.png" alt="">

            <span class="s2">
              <span class="set">分享网易云音乐</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
          <li class="lip">

            <img src="../img/about.png" alt="">

            <span class="s2">
              <span class="set">关于</span>
              <img src="../img/nextsetup.png" alt="">
            </span>
          </li>
        </ul>
      </div>
      <div class="tuichu">
        退出登录
      </div>
      <div class="bottom"></div>
    </div>
</template>

<script>
  import {mapState} from 'vuex'
    export default {
        name: "myuser",
        computed:{...mapState(['userGzhu','userFsi','userDongtai','userXqing'])},
        methods: {
          myfloow() {
            this.$router.push({path: '/myfloow'});
          },
          nextSet(){
            this.$router.push({path: '/mynews'});
          }
        },
        created(){
          console.log(this.$storage.get('user'));
          this.$api.getUserGzhu({uid:this.$storage.get('user').account.id});
          this.$api.getUserFsi({uid:this.$storage.get('user').account.id});
          this.$api.getUserDongtai({uid:this.$storage.get('user').account.id});
          this.$api.getUserXqing({uid:this.$storage.get('user').account.id});
        },
    }
</script>

<style lang="scss">
    *{
      margin: 0px;
      padding: 0px;
    }
    .myuser{
      background-color: #efeff0;
      .title{
        background-color: #c54a3d;
        text-align: center;
        box-sizing: border-box;
        padding-top: 95px;
        padding-bottom: 45px;
        font-size: 50px;
        color: white;
        position: relative;
        img{
          width: 70px;
          position: absolute;
          right: 50px;
          object-fit: cover;
          vertical-align: middle;
        }
      }
      .info{
        background-color: white;
        position: relative;
        box-sizing: border-box;
        padding: 45px 0;
        padding-left: 45px;
        border-bottom: 2px solid #ccc;
        span{
          display: inline-block;
          vertical-align: middle;
        }
        .info-img{
          width: 180px;
          height: 180px;
          background-color: aquamarine;
          border-radius: 50%;
          img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
          }
        }
        .info-id{
          font-size: 45px;
         text-align: left;
          color: #323233;
          span{
            position: relative;
            top: 18px;
            display: inline-block;
            text-align: center;
            padding: 10px 25px;
            border-radius: 50px;
            border: 3px solid #999;
            font-size: 30px;
            color: #999;
            box-sizing: border-box;
            font-weight: bold;
            font-style: italic;
          }
        }
        .info-qd{
          top: 50%;
          text-align: center;
          transform: translateY(-50%);
          position: absolute;
          right: 30px;
          font-size: 35px;
          border: 3px solid #c2463a;
          color: #c2463a;
          padding: 20px 38px;
          box-sizing: border-box;
          border-radius: 95px;
          span{
            img{
              width: 40px;

              vertical-align: middle;
            }
          }

        }
      }
      .xiaoxi{
        background-color: white;
        margin-bottom: 30px;
        ul{
          font-size: 0;
          box-sizing: border-box;
          padding: 30px 0 ;
          li{
            list-style: none;
            display: inline-block;
            text-align: center;
            font-size: 35px;
            color: #969798;
            width: 310px;
            border-right: 1px solid #969798;
            box-sizing: border-box;
            span{
              color: #323233;
              display: inline-block;
              padding-top: 15px;
              box-sizing: border-box;
              font-weight: bold;
            }
            img{
              width: 45px;
              vertical-align: middle;
            }
          }
          .l4{
            border: none;
            span{
              color: #969798;
            }
            .yuan{
              border-radius: 50%;
              background-color: #c2463a;
              width: 30px;
              height: 30px;
              position: relative;
              top: -10px;
              display: inline-block;
            }
          }
        }
      }
      .myxiaoxi{
        background-color: white;
        position: relative;

        margin-bottom: 30px;
        box-sizing: border-box;
        span{
          display: inline-block;
          vertical-align: middle;
          line-height: 140px;
          img{
            display: block;
            vertical-align: middle;
          }
        }
        .left{
          margin-left: 40px;
          .leftone{
            img{
              width: 50px;
            }
          }

          span{
            font-size: 50px;
            color: #323233;
          }
        }
        .right{
        position: absolute;
          right: 30px;
          top: 50%;
          transform: translateY(-50%);
          .s1{
            width: 125px;
            height: 85px;
            text-align: center;
            border-radius: 45px;
            background-color: #ccc;
            position: relative;

            img{
              width:100px;
              margin: auto;
              position: absolute;
              left: 50%;
              transform: translateX(-50%);
              bottom: 0;
              object-fit: cover;
            }
          }
          .img2{
            img{
              width: 70px;
              height: 40px;
              object-fit: cover;
            }

            }

        }

      }
      .vipcenter{
        background-color: white;
        margin-bottom: 30px;
        ul{
          .li3{
            .nr{
              border-bottom: none;
              .cir{
                display: none;
              }
              .yuan{
                display: none;
              }
            }
          }
          li{
            font-size: 0;
            list-style: none;

            span{
              display: inline-block;

              img{
                vertical-align: middle;
                display: block;
              }
            }
            .s1{
              padding: 0 40px;
              box-sizing: border-box;
              position: relative;
              top: 3px;
              img{
                width: 60px;
                vertical-align: middle;
              }
            }
            .nr{
              box-sizing: border-box;
              padding: 35px 0;
              border-bottom: 1px solid #ccc;
              position: relative;
              width: 1105px;
              font-size:50px;
              .nset{
                position: absolute;
                right: 30px;
                top: 50%;
                transform: translateY(-50%);
                img{
                  width: 70px;
                  height: 40px;
                  object-fit: cover;
                }
              }
              .newp{
                font-size: 45px;
                color: #969798;
                top: 50%;
                transform: translateY(-50%);
                position: absolute;
                right: 225px;
              }
              .cir{
                width: 80px;
                height: 80px;
                position: absolute;
                right: 120px;
                border-radius: 50%;
                background-color: red;
                img{
                  border-radius: 50%;
                  width: 80px;
                  height: 80px;
                  object-fit: cover;
                }
              }
              .yuan{
                width: 45px;
                height: 45px;
                border-radius: 50%;
                background-color: white;
                position: absolute;
                top: 20px;
                right: 105px;
              }
              .yuan:before{
                content: '';
                width: 30px;
                height: 30px;
                margin-left: 7.5px;
                margin-top:7.5px;
                display: block;
                border-radius: 50%;
                background-color: red;
              }
            }
          }
        }


      }
      .shezhi{
        background-color: white;

        ul{
          .lip{
            .s2{
              border-bottom: none;
            }
          }
          li{
            list-style: none;
            font-size: 0;
            img{
                width: 60px;
                margin: 0 40px;
                display: inline-block;
                vertical-align: middle;
                object-fit: cover;
            }
            .s2{
              border-bottom: 1px solid #ccc;
              padding: 45px 0;
              display: inline-block;
              font-size: 50px;
              position: relative;
              width: 1105px;
              vertical-align: middle;
              img{
                  width: 70px;
                  height: 40px;
                  object-fit: cover;
                  vertical-align: middle;
                  top: 50%;
                margin: 0px;
                  display: inline-block;
                  transform: translateY(-50%);
                  position: absolute;
                  right: 30px;
                }
            }
          }
        }
      }
      .jion{
        margin-top: 30px;
        background-color: white;

        ul{
          .lip{
            .s2{
              border-bottom: none;
            }
          }
          li{
            list-style: none;
            font-size: 0;
            img{
              width: 60px;
              margin: 0 40px;
              display: inline-block;
              vertical-align: middle;
              object-fit: cover;
            }
            .s2{
              border-bottom: 1px solid #ccc;
              padding: 45px 0;
              display: inline-block;
              font-size: 50px;
              position: relative;
              width: 1105px;
              vertical-align: middle;
              img{
                width: 70px;
                height: 40px;
                object-fit: cover;
                vertical-align: middle;
                top: 50%;
                margin: 0px;
                display: inline-block;
                transform: translateY(-50%);
                position: absolute;
                right: 30px;
              }
            }
          }
        }
      }
      .tuichu{
        margin-top: 30px;

        height: 135px;
        background-color: white;
        text-align: center;
        line-height: 135px;
        color: #c2643a;
        font-size: 50px;
        font-weight: bold;
      }
      .bottom{
        height: 30px;
        margin-bottom: 175px;

        background-color: #efeff0;
      }
    }
</style>
